/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const tableRouter = {
  path: '/member',
  component: Layout,
  redirect: '/member/index',
  name: 'MemberService',
  meta: {
    title: '会员服务',
    icon: 'el-icon-user-solid'
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/member/index.vue'),
      name: 'MemberManage',
      meta: { title: '会员管理', icon: 'el-icon-user' }
    },
    {
      path: 'vcard',
      component: () => import('@/views/member/card-type.vue'),
      name: 'CardType',
      meta: { title: '卡类型管理', icon: 'el-icon-s-finance' }
    },
    {
      path: 'pcard',
      component: () => import('@/views/member/service-card.vue'),
      name: 'ServiceCard',
      meta: { title: '服务卡管理', icon: 'el-icon-s-ticket' }
    },
    {
      path: 'pay',
      component: () => import('@/views/member/pay.vue'),
      name: 'PayRecord',
      meta: { title: '支付记录', icon: 'el-icon-money' }
    }
  ]
}
export default tableRouter
